Skip to main content

Studies

Configuring studies

Purpose and behavior

The studies configuration defines the set of technical indicators available in the chart, both built-in and custom. It controls how each indicator is registered, named, and exposed through the chart API.

This configuration lives under config.components.studies.

Studies configuration interface

The interface below defines the structure of the studies configuration:

export interface ChartConfigComponentsStudies {
visible: boolean;
/**
* List of study configurations. Requires study data as well, use API to set the data.
*/
studies?: Array<StudySeriesConfig>;
histogramLineWidth: number;
/**
* Use when you need to format high precision values up to 10 signs after 0.
*/
useHighPrecisionFormat?: boolean;
cursors: {
main: CursorType;
};
/**
* 'viewport' study labels will show last visible on the screen study series value.
* 'series' study labels will show last overall study series value (even if not visible).
*/
labels: {
lastValue: 'series' | 'viewport';
};
}